package cn.peifu.hrm.util;

import cn.peifu.hrm.vo.AggCourseVo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

//分页对象：easyui只需两个属性，total(总数),datas（分页数据）就能实现分页
@Data
@AllArgsConstructor
public class PageList<T> {
    private long total;
    private List<T> rows = new ArrayList<>();
    Map<String,List<AggCourseVo>> aggMap = new HashMap<>();

    public PageList(long total, List<T> rows) {
        this.total = total;
        this.rows = rows;
    }

    public PageList() {
    }
}
